package org.high5.paintmyworld;

import android.app.ActionBar;
import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceManager;
import android.util.Log;

public class PrefsActivity extends PreferenceActivity {
	
	public final String TAG = "PaintMyWorld-PrefsActivity";

    @SuppressWarnings("deprecation")
	public void onCreate(Bundle savedInstanceState) {
		Log.i(TAG,"Preferences Activity has been launched");
    	
		// config action bar
		ActionBar bar = this.getActionBar();
		bar.setDisplayHomeAsUpEnabled(true);
		
        super.onCreate(savedInstanceState);

        // Load the preferences from an XML resource
        addPreferencesFromResource(R.xml.preferences);
    	SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
    	preferences.registerOnSharedPreferenceChangeListener((OnSharedPreferenceChangeListener) new NotifyChangePref());
    	
    	
            }
    
    
}